const { upload } = require('../api')
const request = require('../request')

class Upload {
  constructor () {
    this.instance = null
  }
  static get Instance () {
    return this.instance || (this.instance = new Upload)
  }

  async upload (data, opts) {
    return request(upload, data, opts)
  }
}
const I = Upload.Instance
module.exports = I